<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

use Think\Model;

class YqNewsTypeList
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "园区动态类型列表ok";
    public $group = '园区动态';
    public $desc = "";

    public $input = [

    ];

    public $output = [
        'list' => [
            [
                'id' => 'label=id;',
                'name' => 'label=类型名称;',
            ]
        ]
    ];

    public function run($param, $uid, $login_info)
    {
        $list = M('yq_new_type')->order('sort ASC')->select();
        return [
            'list' => $list,
        ];
    }
}
